package vip.xiaonuo.supplier.modular.setting.reports.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import vip.xiaonuo.common.pojo.CommonEntity;
import vip.xiaonuo.supplier.modular.base.carrier.entity.SupplierCarrier;
import vip.xiaonuo.supplier.modular.setting.reporttype.entity.PublicReportType;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 打印格式实体
 *
 * @author Mr.wu
 * @date  2025/04/01 15:08
 **/
@Getter
@Setter
@TableName("PUBLIC_REPORTS")
public class PublicReports extends CommonEntity {

    /** 报表ID */
    @TableId
    @Schema(description = "报表ID")
    private String id;

    /** 报表类型 */
    @Schema(description = "报表类型")
    @Trans(type = TransType.SIMPLE, target = PublicReportType.class, fields = {"typeName","reportDataTools"}, alias = "type", refs = {"typeName","reportDataTools"})
    private String reportType;

    /** 报表类型名称 */
    @Schema(description = "报表类型名称")
    @TableField(exist = false)
    private String typeName;

    /** 组件列表 */
    @Schema(description = "组件列表")
    @TableField(exist = false)
    private String reportDataTools;

    /** 报表名称 */
    @Schema(description = "报表名称")
    private String reportName;

    /** 报表内容 */
    @Schema(description = "报表内容")
    private String reportContent;

    /** 默认格式 */
    @Schema(description = "默认格式")
    private String reportDefault;

    /** 数据归属 */
    @Schema(description = "数据归属")
    private String companyId;
}
